package com.bdqn.hospital.service;

import com.bdqn.hospital.pojo.Registry;
import org.apache.ibatis.annotations.Insert;

import com.bdqn.hospital.pojo.Registry;


import com.bdqn.hospital.pojo.Registry;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @version : 1.0
 * @Author :guogd
 * @createTime: 2023/03/01 14:55
 * @Description: com.bdqn.hospital.service
 */
public interface RegistryService {
    /**
     * 挂号单Service
     */

    /**
     * 新增挂号单信息
     * @param registry
     * @return
     */
    Integer addRegistry(Registry registry);

    /**
     * 获取实际挂号费
     * @param registryId
     * @return
     */
    Registry getPayById(Integer registryId);

    /**
     * 查询挂号信息
     * @return
     */
    PageInfo<Registry> getAll(Integer curPage,Integer pageSize,String idCard,Integer userName,Integer status,Integer userId);

    PageInfo<Registry> getAll2(Integer curPage,Integer pageSize,String idCard,Integer userName,Integer status,Integer roomId,Integer userId);

    /**
     * 修改挂号状态
     * @param id
     * @return
     */
    Integer updStatus(Integer id,Integer status,Integer type);
}
